package com.bristua.mall.order.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.order.biz.QueryOrderBiz;
import com.bristua.mall.order.model.condition.QueryOrder.QueryOrder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/24.
 */
@RestController
@Api(value="订单列表",tags={"订单列表"})
public class QueryOrderController {
    @Autowired
    private QueryOrderBiz queryOrderBiz;
    @ApiOperation(value="订单列表")
    @PostMapping(value="/api/order/query")
    public Result queryOrder(@RequestBody QueryOrder queryOrder){
        return HandleResultUtil.querySuccessResult(queryOrderBiz.queryOrder(queryOrder));
    }
}
